home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x64.msi / Data1.cab / _7F2FA1706CE34A608BE5AFE09C531AE5 < prev    next >
Extensible Markup Language  |  2008-06-28  |  5KB  |  100 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" version="1.0">
  3. <xsl:output method="html" version="4.0" encoding="UTF-8" omit-xml-declaration="yes" indent="yes"/>
  4. <xsl:include href="./resource/html/propcell.xsl"/>
  5.  
  6. <xsl:template match="/Root">
  7.     <html>
  8.         <table>
  9.             <tr>
  10.                 <!-- Object header -->
  11.                 <td colspan="4">
  12.                         <h2><xsl:value-of select="PropertyBag/Property[@name='PROPID_DISPLAYNAME']"/></h2>
  13.                         <img src="hline_gray"/>
  14.                 </td>
  15.             </tr>
  16.             <tr>
  17.                 <!-- Diagram image -->
  18.                 <!-- properties list -->
  19.                 <td>
  20.                     <table cellspacing="0" cellpadding="0">
  21.                         <xsl:call-template name="PropCell">
  22.                             <xsl:with-param name="PropName" select="string('PROPID_HDM_SIZESTRING')"/>
  23.                             <xsl:with-param name="CheckNull" select="1"/>
  24.                         </xsl:call-template>
  25.  
  26.                         <xsl:call-template name="PropCell">
  27.                             <xsl:with-param name="PropName" select="string('PROPID_ADB_ARCHIVESIZESTRING')"/>
  28.                         </xsl:call-template>
  29.  
  30.                         <xsl:call-template name="PropCell">
  31.                             <xsl:with-param name="PropName" select="string('PROPID_ADB_LOCATION')"/>
  32.                         </xsl:call-template>
  33.  
  34.                         <xsl:variable name="BaseName" select="string(PropertyBag/Property[@name='PROPID_ADB_BASELOCATION'])"/>
  35.  
  36.                         <xsl:if test="$BaseName != ''">
  37.                             <xsl:call-template name="PropCell">
  38.                                 <xsl:with-param name="PropName" select="string('PROPID_ADB_BASELOCATION')"/>
  39.                                 <xsl:with-param name="CheckNull" select="1"/>
  40.                             </xsl:call-template>
  41.                         </xsl:if>
  42.  
  43.                         <xsl:call-template name="PropCell">
  44.                             <xsl:with-param name="PropName" select="string('PROPID_ADB_CREATIONDATESTRING')"/>
  45.                         </xsl:call-template>
  46.  
  47.                         <xsl:call-template name="PropCell">
  48.                             <xsl:with-param name="PropName" select="string('PROPID_ADB_LONGCOMMENT')"/>
  49.                             <xsl:with-param name="CheckNull" select="1"/>
  50.                             <xsl:with-param name="WordWrap" select="1"/>
  51.                         </xsl:call-template>
  52.  
  53.  
  54.                 <xsl:if test="number(PropertyBag/Property[@name='PROPID_ADB_FLAGS_LIST']/ListVal) != 0">    
  55.                             <tr>
  56.                                 <td align="right" valign="top">
  57.                                     <nobr>
  58.                                     <b>QT_TRANSLATE_NOOP("QObject", "Flags:")</b>
  59.                                     </nobr>
  60.                                 </td>
  61.  
  62.                                 <td width="100%">
  63.                                     <table cellspacing="0" cellpadding="0">
  64.                                         <xsl:for-each select="PropertyBag/Property[@name='PROPID_ADB_FLAGS_LIST']/ListVal">
  65.                                             <tr>
  66.                                                 <td>
  67.                                                     <img>
  68.                                                         <xsl:attribute name="src">
  69.                                                             <xsl:value-of select="ListVal[@index=1]"/>
  70.                                                         </xsl:attribute>
  71.                                                     </img>
  72.                                                 </td>
  73.  
  74.                                                 <td width="100%">
  75.                                                     <xsl:value-of select="ListVal[@index=2]"/>
  76.                                                 </td>
  77.                                             </tr>
  78.                                         </xsl:for-each>
  79.                                     </table>
  80.                                 </td>
  81.                             </tr>
  82.                         </xsl:if>
  83.                         
  84.                     </table>
  85.                 </td>
  86.                 <td width="100%"> </td>
  87.             </tr>
  88.             <tr>
  89.                     <!-- Divider line -->
  90.                     <td colspan="4">
  91.                             <img src="hline_gray"/>
  92.                     </td>
  93.             </tr>
  94.         </table>
  95.         <!-- Command hyperlinks -->
  96.         <xsl:call-template name="CommandTable"/>
  97.     </html>
  98. </xsl:template>
  99. </xsl:stylesheet>
  100.